<template>
	<van-search v-model="value" left-icon="location-o" background="#e5017d" show-action placeholder="请输入搜索关键词" @search="onSearch">
		<template #action>
			<div @click="onSearch">查找</div>
		</template>
	</van-search>
</template>

<script>
	export default {
		name:"mySearch",
		data() {
			return {
				value: ""
			
			}
		},
		methods: {
			onSearch() {
				console.log(this.value)
			}
		}
	}
</script>

<style>
</style>
